FROM java:8
VOLUME /tmp
ADD /target/HelloWorld-1.0-SNAPSHOT.jar app.jar
RUN sh -c 'touch /app.jar'
ENV JAVA_OPTS=""
EXPOSE 8081
ENTRYPOINT ["java","-jar","app.jar"]
#ENTRYPOIN`T [ "sh", "-c", "java $JAVA_OPTS -Djava.security.egd=file:/dev/./urandom -jar /app.jar" ]